import request from '@/utils/request'

// 查询孵化基地列表
export function listIncubation(query) {
  return request({
    url: '/article/incubation/list',
    method: 'get',
    params: query
  })
}

// 查询孵化基地详细
export function getIncubation(id) {
  return request({
    url: '/article/incubation/' + id,
    method: 'get'
  })
}

// 新增孵化基地
export function addIncubation(data) {
  return request({
    url: '/article/incubation',
    method: 'post',
    data: data
  })
}

// 修改孵化基地
export function updateIncubation(data) {
  return request({
    url: '/article/incubation',
    method: 'put',
    data: data
  })
}

// 删除孵化基地
export function delIncubation(id) {
  return request({
    url: '/article/incubation/' + id,
    method: 'delete'
  })
}
